home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
h
/
highspeedpascalv2.0b.dms
/
highspeedpascalv2.0b.adf
/
Interface
/
Diskfont.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1992-01-16
|
1KB
|
74 lines
Unit Diskfont;
Interface
Uses Graphics, AmigaDOS, Exec;
Type
tAvailFonts = Record
af_Type: Integer;
af_Attr: tTextAttr;
End;
tFontContentsHeader = Record
fch_FileID: Integer;
fch_NumEntries: Integer;
End;
tFontContents = Record
fc_FileName: Array [0..255] of ShortInt;
fc_YSize: Integer;
fc_Style: ShortInt;
fc_Flags: ShortInt;
End;
tDiskFontHeader = Record
dfh_DF: tNode;
dfh_FileID: Integer;
dfh_Revision: Integer;
dfh_Segment: LongInt;
dfh_Name: Array [0..31] of ShortInt;
dfh_TF: tTextFont;
End;
tAvailFontsHeader = Record
afh_NumEntries: Integer;
End;
pLibrary = ^tLibrary;
pAvailFontsHeader = ^tAvailFontsHeader;
pFontContentsHeader = ^tFontContentsHeader;
pTextFont = ^tTextFont;
pDiskFontHeader = ^tDiskFontHeader;
pTextAttr = ^tTextAttr;
Var
DiskfontBase: pLibrary;
Const
MAXFONTNAME = $20;
MAXFONTPATH = $100;
FCH_ID = $F00;
DFH_ID = $F80;
AFB_MEMORY = $0;
AFF_MEMORY = $1;
AFB_DISK = $1;
AFF_DISK = $2;
Function OpenDiskFont (textAttr: pTextAttr): pTextFont;
Function AvailFonts
(buffer: pAvailFontsHeader;
bufBytes: LongInt;
flags: LongInt): LongInt;
Function NewFontContents
(fontsLock: LongInt;
fontName: String): pFontContentsHeader;
Procedure DisposeFontContents (fontContentsHeader: pFontContentsHeader);
End.